package com.core.mapper;

import com.core.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.core.dto.UserInfoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author legion
 * @description 针对表【users】的数据库操作Mapper
 * @createDate 2025-05-31 22:41:52
 * @Entity com.soft.domain.Users
 */
@Mapper
public interface UsersMapper extends BaseMapper<User> {
    UserInfoDto getByUsername(@Param("username") String username);

    List<UserInfoDto> getListPage(@Param("user") User user, @Param("pageSize") Long pageSize, @Param("pageNum") Long pageNum);

    void deleteBatchByIds(@Param("userIds") List<Long> userIds);
}




